package com.fyx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.sql.Timestamp;
import java.util.List;

@Data
@Document(collection = "check_list")
public class CheckListEntity {
    @Transient
    private List<Timestamp> qTime;

    private String _id;

    @Transient
    private String ids;

    private int mail_type;

    private int mail_stype;

    @Column(name = "userId")
    @Field("userId")
    private String userid;

    private String title;

    private String content;

    private Integer nobles;

    private List<AwardsEntity> awards;

    private String awardsContent;

    private String status;

    private String check_reason;

    private int check_time;

    private String check_userId;

    private String check_userName;

    private String submit_reason;

    private int submit_time;

    private String submit_userId;

    private String submit_userName;

    private List<UserEntity> emailAwards;

    @Transient
    private String pid;

    private Integer anchorInfoId;

    private String[] channels;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Transient
    private List<Timestamp> mailTime;
    private long begin_time;
    private long end_time;

    private String anchors;

    private Boolean anchor;

    private String flag;
}
